<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');


$semester_id = mysql_real_escape_string(strip_tags($_GET['id']));

$get_semester_data=mysql_query("SELECT * 
								FROM seasons 
								JOIN semesters
								ON semesters.season_id=seasons.id
								WHERE semesters.id='$semester_id'");
								
$year=mysql_result($get_semester_data,0,"semesters.year");
$season=mysql_result($get_semester_data,0,"seasons.season");

echo "<h1>Delete Semester</h1>";

//close
mysql_close();

echo "<p>";
echo "Are you sure you want to delete <b>$season $year?</b>";

echo "<form action='delete_do.php' method='post'>";
echo "<input type='hidden' name='id' value='$semester_id'>";
echo "<input type='submit' value='Yes'>";
echo '</form>';

echo "</p>";

echo "<p>";
	echo "<a href='index.php'>&lt;&lt; Back to Semesters Portal</a><br />";
echo "</p>";
?>
<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>